Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /
Chapter 2 - Shape Objects / Shape Objects Reference
Constants and Data Types


Flatten Flags

The flatten flags are used in a parameter to the GXFlattenShape function, to control the amount of font and bitmap information to include in a flattened shape. The flatten flags are defined in the gxFlattenFlags enumeration:

enum gxFlattenFlags {
   gxFontListFlatten       = 0x01,
   gxFontGlyphsFlatten     = 0x02,
   gxFontVariationsFlatten = 0x04,
   gxBitmapAliasFlatten    = 0x08
};

typedef long gxFlattenFlag;
Constant descriptions

gxFontListFlatten
Instructs the GXFlattenShape function to attach to the flattened shape a tag object containing a list of the fonts referenced in the shape.
gxFontGlyphsFlatten
Instructs the GXFlattenShape function to attach to the flattened shape a tag object containing a list of the specific glyphs used from each font referenced by the shape.
gxFontVariationsFlatten
Instructs the GXFlattenShape function to attach to the flattened shape a tag object containing variation-axis coordinates describing all font variations used by the flattened shape.
gxBitmapAliasFlatten
Instructs the GXFlattenShape function to include with the flattened shape all image data from any bitmap shapes that are referenced by the shape. If this flag is not set, image data from bitmap shapes whose image data is disk-based is not included in the flattened shape, although the image data is not lost because a tag object specifying the file holding the image data is flattened along with the shape.
For more information on flattening shapes, see "Flattening and Unflattening Shapes" beginning on page 2-39. The GXFlattenShape function is described on page 2-88.
For information on font variations, see the font objects chapter of Inside Macintosh: QuickDraw GX Typography. For information on bitmap image data, see the bitmap shapes chapter of Inside Macintosh: QuickDraw GX Graphics.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996